home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / powerb5.zip / P5DBS002.TIP < prev    next >
Text File  |  1993-06-01  |  3KB  |  60 lines

  1. It's easy to obtain summary information such as column
  2. totals without creating a query in Paradox 3.x. For example,
  3. the IMAGECSUM() function displays the total of any numeric
  4. column. To use this function, place the cursor on a column
  5. that you want to total and press <Alt>-<F10>. Select Value
  6. in the resulting menu, type IMAGECSUM(), and press <Enter>.
  7. The result is displayed in the message window at the bottom
  8. right of the screen. You can use other functions to display
  9. minimums, maximums, averages, and counts.
  10.  
  11. This method has several advantages over querying. It's
  12. faster, because you don't need to create a query form and
  13. type in the requirements. It's also more flexible, since
  14. IMAGE functions can be used in tables or forms, or even in
  15. linked or unlinked multitable forms.
  16.  
  17. To make these functions even easier to use, you can assign
  18. them to key combinations. The PAL script SETKEYS.SC assigns
  19. summary functions to specific keys. Once you've run the
  20. script, press <Alt>-S to get a sum of the current field's
  21. values, <Alt>-N to get the smallest value in the field,
  22. <Alt>-M the largest, and <Alt>-A the average. All four
  23. commands use the FORMAT() function to display every answer
  24. to two decimal places. Each of these functions displays an
  25. error message if you use it on a nonnumeric column or when
  26. there aren't any columns.
  27.  
  28. If you change the name of the script INIT.SC, the keys are
  29. assigned automatically each time Paradox is started (if you
  30. already have an INIT.SC file, you may prefer to add these
  31. lines to it rather than create a new script). If you name
  32. the script something other than INIT (I call it SETKEYS) you
  33. can assign the keys by playing the script via the Script
  34. Play command. See Chapter 3 of the PAL user guide for
  35. information on the codes for assigning keys.
  36.  
  37. D. Hemachandra
  38. Seattle, Washington
  39.  
  40. Editor's Note: SETKEYS.SC is in the P5DBS directory of your
  41. PowerBase *.* Volume 5 diskette. You may wish to edit this
  42. script to suit your own needs; Ruth Anne Ladue, my resident
  43. Paradox expert, informs me that the FORMAT portion of each
  44. script (which determines how the result is displayed) can be
  45. changed to display data in almost any format you choose.
  46. 'W20.2,EC' means a field 20 spaces wide with two decimal
  47. places; the 'EC' puts a comma between every three digits.
  48. Without the FORMAT() function, a script prints numbers using
  49. the default field width in Paradox -- a good choice if the
  50. values in that column represent something other than dollars
  51. and cents.
  52.  
  53.  
  54. Title: Superfast Summaries in Paradox
  55. Category: DBS
  56. Issue Date: July, 1992
  57. Editor: Brett Glass
  58. Supplementary Files: P5DBS\SETKEYS.SC
  59. Filename: P5DBS002.TIP
  60.